package com.wpml;

//import com.wpml.agent.ObjectSizeAgent;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        /*printBinary(RUNNING);
        System.out.println();
        printBinary(SHUTDOWN);
        System.out.println();
        printBinary(STOP);
        System.out.println();
        printBinary(TIDYING);
        System.out.println();
        printBinary(TERMINATED);*/


//        System.out.println(ObjectSizeAgent.sizeOf(new Object()));
    }


    private static final int COUNT_BITS = Integer.SIZE - 3;

    // runState is stored in the high-order bits
    private static final int RUNNING    = -1 << COUNT_BITS;
    private static final int SHUTDOWN   =  0 << COUNT_BITS;
    private static final int STOP       =  1 << COUNT_BITS;
    private static final int TIDYING    =  2 << COUNT_BITS;
    private static final int TERMINATED =  3 << COUNT_BITS;


    private static void printBinary(int num) {
        for (int i = 31; i >= 0; i--) {
            System.out.print((num & (1 << i)) == 0 ? "0" : "1");
        }
    }

    static class P {
        int num = 0;
        String name;
    }
}
